﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BCL.Tool.Async
{
    public class Async
    {
        public static void Invoke(Action ac, System.AsyncCallback callback, object obj)
        {
            ac.BeginInvoke(result => callback.Invoke(result), obj);
        }
        //public static void Invoke(ToolAction ac, ToolAsyncCallback callback, object obj)
        //{
        //    ac.Invoke()
        //}
    }
    public delegate void ToolAsyncCallback(ToolAsyncResult result);
    public delegate void ToolAction(ToolAsyncCallback callback);
}
